import {t} from '/@/hooks/web/useI18n';
import {LAYOUT} from '/@/router/constant';
import {AppRouteModule} from '/@/router/types';

const biz: AppRouteModule = {
  path: '/biz',
  name: 'Biz',
  component: LAYOUT,
  redirect: '/biz/hosptial',
  meta: {
    orderNo: 2000,
    icon: 'ion:calendar-outlined',
    title: t('routes.demo.biz.moduleName'),
  },
  children: [
    {
      path: 'hospital',
      name: 'HospitalManagement',
      meta: {
        title: t('routes.demo.biz.hospital'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/biz/hospital/index.vue'),
    },
    {
      path: 'department',
      name: 'departmentManagement',
      meta: {
        title: t('routes.demo.biz.department'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/biz/department/index.vue'),
    }
  ],
}
export default biz
